package dome2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2024-07-15
 * Time: 1:01
 */
public class C extends A /*implements Comparable<C>*/{
    int anInt;
    int next;

    public C(int anInt, int next) {
        this.anInt = anInt;
        this.next = next;
    }

//    @Override
//    public int compareTo(C o) {
//        return o.anInt - this.anInt;
//    }

    @Override
    public String toString() {
        return "C{" +
                "anInt=" + anInt +
                ", next=" + next +
                '}';
    }
}
